cmake_minimum_required(VERSION 3.10)

project(RayTracingInOneWeekend VERSION 0.0)

configure_file(RayTracingConfig.h.in RayTracingConfig.h)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED True)
set(CMAKE_BUILD_TYPE Debug)

aux_source_directory(${PROJECT_SOURCE_DIR}/src SRCS)

add_executable(RayTracer ${SRCS})

target_include_directories(RayTracer PUBLIC 
    "${PROJECT_SOURCE_DIR}/include/stb_image" 
    "${PROJECT_SOURCE_DIR}/include/Eigen" 
    "${PROJECT_SOURCE_DIR}/include" 
    "${PROJECT_BINARY_DIR}"
)